<!DOCTYPE html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>商品列表</title>
    <meta name="description" content="后台管理">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="__CSS__/amazeui.min.css"/>
    <link rel="stylesheet" href="__CSS__/admin.css">
    <link rel="stylesheet" href="__P_JS__/layer/need/layer.css">
    <script src="__JS__/jquery.min.js"></script>
    <script src="__JS__/app.js"></script>
    <script src="__P_JS__/layer/layer.js"></script>
</head>

<body>
{include file="common/header" /}
<div class="am-cf admin-main">
    {include file="common/menu" /}
    <div class=" admin-content">

        <div class="daohang">

        </div>


        <div class="admin-biaogelist">

            <div class="listbiaoti am-cf">
                <ul class="am-icon-flag on"> 栏目名称</ul>

                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">管理用户列表</a></dl>

                <dl>
                    <a href="{:url('add_admin')}" type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus"> 添加管理用户</a>
                </dl>


            </div>

            <form class="am-form am-g">
                <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                    <thead>
                    <tr class="am-success">
                        <th class="table-id">ID</th>
                        <th class="table-title">用户名</th>
                        <th class="table-title">超级管理员</th>
                        <th class="table-type">最后登录时间</th>
                        <th width="163px" class="table-set">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name='list' id='goods'}
                        <tr>
                            <td>{$goods.id}</td>
                            <td><a href="{:url('home/index/goods','id='.$goods['id'].'')}" target="_blank">{$goods.username}</a></td>
                            <td>{if $goods.super}是{else}否{/if}</td>
                            <td>{:date('Y-m-d H:i:s',$goods.last_login_time)}</td>
                            <td><div class="am-btn-toolbar" style="width:180px;">
                                <div class="am-btn-group am-btn-group-xs">
                                    <a href="{:url('authpage/index','uid='.$goods.id.'')}" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round"><span class="am-icon-pencil-square-o"></span></a>
                                    <a href="{:url('del_admin','uid='.$goods.id.'')}" class="am-btn am-btn-default am-btn-xs am-text-danger am-round"><span class="am-icon-trash-o"></span></a>
                                </div>
                            </div></td>
                        </tr>
                    {/volist}
                    </tbody>
                </table>

                <!--<div class="am-btn-group am-btn-group-xs">-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>-->
                    <!--<button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>-->
                <!--</div>-->

                {$page}





                <hr />
                <!--<p>注：.....</p>-->
            </form>
            {include file="common/footer" /}
        </div>

    </div>
</body>
<script>
    $(document).on('click', '.qr-img',function(){
        var img = $('div',$(this)).html();
        if(img){
            layer.open({
                type: 1,
                //skin: 'layui-layer-demo', //样式类名
                closeBtn: 0, //不显示关闭按钮
                anim: 2,
                shadeClose: true, //开启遮罩关闭
                content: img
            });
        }

    });
</script>
</html>